//调研问卷
//import queManage from './queManage/queManage'
const queManage = resolve => {
    require.ensure(['./queManage/queManage'], () => {
        resolve(require('./queManage/queManage'))
    })
}

import NotFoundCom from '../NotFoundCom'
// 字典
//import DictCom from './dict/DictCom'
const DictCom = resolve => {
        require.ensure(['./dict/DictCom'], () => {
            resolve(require('./dict/DictCom'))
        })
    }
    // 部门
    //import DeptCom from './organ/DeptCom'
const DeptCom = resolve => {
        require.ensure(['./organ/DeptCom'], () => {
            resolve(require('./organ/DeptCom'))
        })
    }
    // 人员
    // import UserCom from './user/UserCom'
const UserCom = resolve => {
        require.ensure(['./user/UserCom'], () => {
            resolve(require('./user/UserCom'))
        })
    }
    // 角色
    //import ResRoleCom from './role/ResRoleCom'
const ResRoleCom = resolve => {
        require.ensure(['./role/ResRoleCom'], () => {
            resolve(require('./role/ResRoleCom'))
        })
    }
    //import DataRoleCom from './role/DataRoleCOm'
const DataRoleCom = resolve => {
        require.ensure(['./role/DataRoleCOm'], () => {
            resolve(require('./role/DataRoleCOm'))
        })
    }
    // 资源
    //import ResCom from './res/ResCom'
const ResCom = resolve => {
        require.ensure(['./res/ResCom'], () => {
            resolve(require('./res/ResCom'))
        })
    }
    // 业务参数
    //import ParamDefCom from './param/ParamDefCom'
const ParamDefCom = resolve => {
    require.ensure(['./param/ParamDefCom'], () => {
        resolve(require('./param/ParamDefCom'))
    })
}

// 机油表配置
const ParamTheOilSetCom = resolve => {
    require.ensure(['./param/ParamTheOilSet'], () => {
        resolve(require('./param/ParamTheOilSet'))
    })
}


//import ParamSetCom from './param/ParamSetCom'
const ParamSetCom = resolve => {
    require.ensure(['./param/ParamSetCom'], () => {
        resolve(require('./param/ParamSetCom'))
    })
}

// 经营品牌
//import BrandCom from './brand/BrandCom'
const BrandCom = resolve => {
    require.ensure(['./brand/BrandCom'], () => {
        resolve(require('./brand/BrandCom'))
    })
}

//import BrandHisCom from './brand/BrandHisCom'
const BrandHisCom = resolve => {
    require.ensure(['./brand/BrandHisCom'], () => {
        resolve(require('./brand/BrandHisCom'))
    })
}


//车型车系
//import CarSeriesCom from './CarSeries/CarSeries'

const CarSeriesCom = resolve => {
        require.ensure(['./CarSeries/CarSeries'], () => {
            resolve(require('./CarSeries/CarSeries'))
        })
    }
    //导入实体管理
    //import impEntityCom from './imp/impEntityCom'
const impEntityCom = resolve => {
        require.ensure(['./imp/impEntityCom'], () => {
            resolve(require('./imp/impEntityCom'))
        })
    }
    //
    //import impTemplateCom from './imp/impTemplateCom'
const impTemplateCom = resolve => {
    require.ensure(['./imp/impTemplateCom'], () => {
        resolve(require('./imp/impTemplateCom'))
    })
}

//维修类别
//import MaintainTypeCom from './MaintainType/MaintainType'

const MaintainTypeCom = resolve => {
        require.ensure(['./MaintainType/MaintainType'], () => {
            resolve(require('./MaintainType/MaintainType'))
        })
    }
    //分组
    //import CrmGroupCom from './group/CrmGroup'
const CrmGroupCom = resolve => {
        require.ensure(['./group/CrmGroup'], () => {
            resolve(require('./group/CrmGroup'))
        })
    }
    //质保参数
    //import warrantyCom from './warranty/warrantyCom'
const warrantyCom = resolve => {
        require.ensure(['./warranty/warrantyCom'], () => {
            resolve(require('./warranty/warrantyCom'))
        })
    }
    //客户标签维护
    //import customerLabe from './customer/customerLabe'
const customerLabe = resolve => {
        require.ensure(['./customer/customerLabe'], () => {
            resolve(require('./customer/customerLabe'))
        })
    }
    //首页模板管理
    //import indexmodel from './index/indexmodel'

const indexmodel = resolve => {
    require.ensure(['./index/indexmodel'], () => {
        resolve(require('./index/indexmodel'))
    })
}

//角色关联管理
//import modelAssociation from './index/modelAssociation'
const modelAssociation = resolve => {
    require.ensure(['./index/modelAssociation'], () => {
        resolve(require('./index/modelAssociation'))
    })
}

//问题分类管理
//import questionClass from './cusVisit/questionClass'
const questionClass = resolve => {
        require.ensure(['./cusVisit/questionClass'], () => {
            resolve(require('./cusVisit/questionClass'))
        })
    }
    //问题项管理
    //import questionItem from './cusVisit/questionItem'
const questionItem = resolve => {
        require.ensure(['./cusVisit/questionItem'], () => {
            resolve(require('./cusVisit/questionItem'))
        })
    }
    //客户等级管理
    //import customerClass from './carManage/customerClass'
const customerClass = resolve => {
        require.ensure(['./carManage/customerClass'], () => {
            resolve(require('./carManage/customerClass'))
        })
    }
    //客户评分项目管理
    //import cusScoreProject from './carManage/cusScoreProject'
const cusScoreProject = resolve => {
        require.ensure(['./carManage/cusScoreProject'], () => {
            resolve(require('./carManage/cusScoreProject'))
        })
    }
    //客户评级管理
    //import cusGradeMana from './carManage/cusGradeMana'
const cusGradeMana = resolve => {
        require.ensure(['./carManage/cusGradeMana'], () => {
            resolve(require('./carManage/cusGradeMana'))
        })
    }
    //车辆评分分值管理
    //import itemscoreMana from './carManage/itemscoreMana'
const itemscoreMana = resolve => {
        require.ensure(['./carManage/itemscoreMana'], () => {
            resolve(require('./carManage/itemscoreMana'))
        })
    }
    //月度权重管理
    //import monthlyWeightMana from './monthlyTarget/monthlyWeightMana'
const monthlyWeightMana = resolve => {
        require.ensure(['./monthlyTarget/monthlyWeightMana'], () => {
            resolve(require('./monthlyTarget/monthlyWeightMana'))
        })
    }
    // 空组件， 标明路径跳转
import BaseCom from './BaseCom'
// 定义子模块路由
const baseRoutes = [{
    path: 'base',
    component: BaseCom,
    children: [
        // 调研问卷
        {
            path: 'queManage',
            component: queManage
        },
        // 业务字典
        {
            path: 'dict',
            component: DictCom
        },
        {
            path: 'dept',
            component: DeptCom
        },
        {
            path: 'user',
            component: UserCom
        },
        {
            path: 'dataRole',
            component: DataRoleCom
        },
        {
            path: 'res',
            component: ResCom
        },
        {
            path: 'resRole',
            component: ResRoleCom
        },
        {
            path: 'brand',
            component: BrandCom
        },
        {
            path: 'brandHis',
            component: BrandHisCom
        },
        {
            path: 'paramDef',
            component: ParamDefCom
        },
        {
            path: 'ParamTheOilSet',
            component: ParamTheOilSetCom
        },
        {
            path: 'paramSet',
            component: ParamSetCom
        },

        {
            path: 'CarSeries',
            component: CarSeriesCom
        },

        {
            path: 'impEntity',
            component: impEntityCom
        },
        {
            path: 'impTemplate',
            component: impTemplateCom
        },
        {
            path: 'MaintainType',
            component: MaintainTypeCom

        },

        {
            path: 'CrmGroup',
            component: CrmGroupCom
        },
        {
            path: 'warranty',
            component: warrantyCom
        },
        {
            path: 'customer',
            component: customerLabe
        },
        {
            path: 'indexmodel',
            component: indexmodel
        },
        {
            path: 'modelAssociation',
            component: modelAssociation
        },
        {
            path: 'questionClass',
            component: questionClass
        },
        {
            path: 'questionItem',
            component: questionItem
        },
        {
            path: 'customerClass',
            component: customerClass
        },
        {
            path: 'cusScoreProject',
            component: cusScoreProject
        },
        {
            path: 'cusGradeMana',
            component: cusGradeMana
        },
        {
            path: 'itemscoreMana',
            component: itemscoreMana
        },
        {
            path: 'monthlyWeightMana',
            component: monthlyWeightMana
        }
    ]

}]
export default baseRoutes